x86/HVM: prevent infinite VM entry retries
authorJan Beulich <jbeulich@suse.com>
Tue, 2 Dec 2014 11:48:01 +0000 (12:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 2 Dec 2014 11:48:01 +0000 (12:48 +0100)
commit04ae2f6837b35bcfb689baf15f493da626929fb5
tree416126e618ae3408eb095fed8b96b77deb123d19
parent188336bb86d0992a2a034ece5f39eccc5d10f337
x86/HVM: prevent infinite VM entry retries

This reverts the VMX side of commit 28b4baac ("x86/HVM: don't crash
guest upon problems occurring in user mode") and gets SVM in line with
the resulting VMX behavior. This is because Andrew validly says

"A failed vmentry is overwhelmingly likely to be caused by corrupt
 VMC[SB] state.  As a result, injecting a fault and retrying the the
 vmentry is likely to fail in the same way."

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Tim Deegan <tim@xen.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c